
function convert(num) {
    
    if (Number.isNaN(intNum)) {
        return;
    } else {

        var intNum = Number.parseInt(num);
        console.warn("int number: %s", intNum);
        return intNum;
    }
}

try {
    var data = new Number(123);

    var max = Number.MAX_VALUE;
    var min = Number.MIN_VALUE;

    console.warn("number max: %d, min: %d",max, min);
    
    var intNum = convert(data);
    var result = intNum / 0;
    console.warn(result);

} catch (e) {
    console.log(e);
}
